public class ServerStatus{
	public boolean running = false;
	public int threadsOnline = 0;
}

class  GameThreadStatus{
	public boolean living = true;
	public int id;

	public GameThreadStatus(int id){
		this.id = id;
	}

	public void setID(int id){
		this.id = id;
	}
}

class ConnectionChecker implements Runnable{
	private Server server;
	public ConnectionChecker(Server server){
		this.server = server;
	}
	public void run(){
		while(true){
			try{
				server.checkForDeadConnections();
				Thread.sleep(5000);
			} catch(Exception e){
				e.printStackTrace();
			}
		}	
	}
}	
